﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Csla;
namespace EntGuayasSLA.BL.Listas.Criterias
{

    [Serializable]
    public class ItemCriteria : BusinessBase<ItemCriteria>
    {
        #region Business Methods
        public static readonly PropertyInfo<string> CatalogoIdProperty = RegisterProperty<string>(c => c.CatalogoId);
        public string CatalogoId
        {
            get { return GetProperty(CatalogoIdProperty); }
            set { SetProperty(CatalogoIdProperty, value); }
        }
        public static readonly PropertyInfo<string> CodigoCatalogoProperty = RegisterProperty<string>(c => c.CodigoCatalogo);
        public string CodigoCatalogo
        {
            get { return GetProperty(CodigoCatalogoProperty); }
            set { SetProperty(CodigoCatalogoProperty, value); }
        }

        public static readonly PropertyInfo<string> OpcionProperty = RegisterProperty<string>(c => c.Opcion);
        public string Opcion
        {
            get { return GetProperty(OpcionProperty); }
            set { SetProperty(OpcionProperty, value); }
        }

        #endregion

        #region Factory Methods

        public static ItemCriteria NewItemCriteria()
        {
            return DataPortal.Create<ItemCriteria>();
        }

        private ItemCriteria()
        { /* Require use of factory methods */ }

        #endregion


    }

}
